<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	//获取session中的值
	Integer userID = (Integer) session.getAttribute("userID");
	//表示未登陆
	if (userID == null || userID == 0) {
		response.sendRedirect("adminLogin.jsp");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>紫云科技网络有限公司</title>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/main.css" />
<script src="<%=path%>/jsp/admin/js/jquery-1.3.1.js"
	type="text/javascript"></script>
<script type="text/javascript">

 //使用js判断用户是否输入
	$(document).ready(function() {

		$("#btOK").click(function() {

			var oldpassword = $("#oldpassword");
			var newpassword = $("#newpassword");
			var newpassword2 = $("#newpassword2");

			if (oldpassword.val() == '') {
				alert("原始密码输入框为空");
				return false;
			} else if (newpassword.val() == '') {
				alert("新密码输入框为空");
				return false;
			} else if (newpassword2.val() == '') {
				alert("重复密码输入框为空");
				return false;
			} else if (newpassword.val() != newpassword2.val()) {
				alert("密码前后不一致");
				return false;
			}
			return true;
		});
	});
</script>
</head>
<body style="background:url(<%=path%>/image/856.jpg);background-repeat: no-repeat;background-position: center center;background-size: cover;">
    <!-- 插入头部文件 -->
	<jsp:include page="top.jsp" />
	<div class="container clearfix">
	<!-- 插入左边文件 -->
		<jsp:include page="left.jsp" />
		<div class="main-wrap">

			<div class="crumb-wrap">
				<div class="crumb-list">
					<i class="icon-font"></i><a href="<%=path%>/jsp/admin/index.jsp">首页</a><span
						class="crumb-step">&gt;</span><span>修改密码</span>
				</div>
			</div>
			<div class="result-wrap">
				<div class="result-content">
					<form action="<%=path%>/admin/AdminManagereServlet?flag=changPass"
						method="post">
						<table class="insert-tab" width="100%">
							<tbody>

								<tr>
									<th>原始密码：</th>
									<td><input class="common-text" id="oldpassword"
										name="oldpassword" size="50" type=password></td>
								</tr>
								<tr>
									<th>新密码：</th>
									<td><input class="common-text" id="newpassword"
										name="newpassword" size="50" type="password"></td>
								</tr>
								<tr>
									<th>重复密码：</th>
									<td><input class="common-text" id="newpassword2"
										name="newpassword2" size="50" type="password"></td>
								</tr>

								<tr>
									<th></th>
									<td><input class="btn btn-primary btn6 mr10" value="提交"
										type="submit" id="btOK"><input type="button"
										value="返回" onClick="history.go(-1)" class="btn btn6"></td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>

		</div>
		<!--/main-->
	</div>
</body>
</html>